package 多线程.复习.线程方法;

import java.sql.Time;
import java.util.Timer;
import java.util.TimerTask;

public class 定时器Timer {
    public static void main(String[] args) {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("3S后打印");
            }
        },3000);

    }
}
